var iframeUrl = pathUrl("home");//首页url
var num="";

/*
 * @Description: 获取菜单
 * @param :
 */
function fnGetMenu() {
	$.ajax({
		url: pathUrl('menu/menuTree.action'),
		type: "POST",
		async: false,
		success: function(data) {
			$('#nav').html(data);
		},
		error : function(event,xhr,options,exc) {
			swal_Tips_Error();
		}
	});
}
var flag = false;
function newMsgCount() {
	if(num==0){
		document.title = 'MES';
		return false;
	}else{
		 if (flag) {
		        flag = false;
		        document.title = '【新消息】';
		        $('#num').css("visibility","visible");
		    } else {
		        flag = true;
		        document.title = '【　　　】';
		        $('#num').css("visibility","hidden");
		    }
	}
    window.setTimeout('newMsgCount(0)', 500);
}